package com.tanjie.blackbean.system.admin;

import com.tanjie.blackbean.cache.support.RedisCachePermissionValidator;
import com.tanjie.blackbean.core.auth.PermissionValidator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: tanjie
 * @date: 2022-05-04 11:43
 **/
@Configuration
public class AdminConfiguration {

    @Bean
    public PermissionValidator permissionValidator() {
        return new RedisCachePermissionValidator();
    }

}
